package com.owl.jdbc.mapper;

import com.owl.jdbc.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    @Insert("insert into user_0(id,name,age,create_time) values(#{id},#{name},#{age},#{create_time})")
    void save(User user);


    @Select("select * from user_0 where id = #{id}")
    User findById(Long id);
}
